[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
XOR(IEXP1,IEXP2) (INTEGER)
Function
Calculate the bitwise XOR (eXclusive OR) of two integer arguments.
Syntax
XOR(iexp1,iexp2)
iexp1 = Any integer expression.
iexp2 = Any integer expression.
Return Type & Value
INTEGER
Returns the bitwise XOR of iexp1 and iexp2.
Remarks
This function may be used to toggle selected bits in an integer
expression by XORing the expression with a mask that has the bits to
toggle set to 1 and the bits to ignore set to 0.
Examples
' Toggle the bits in the low byte
PRINTLN XOR(1248h,00FFh)
' Toggle a flag
INTEGER flag
LET flag = XOR(flag,1)
See Also:
AND()
NOT()
OR()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson